package com.yy.yunpan;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;

/**
 * YY云盘主启动类
 *
 * @author YY
 * @since 2025-10-01
 */
@SpringBootApplication(scanBasePackages = "com.yy.yunpan")
@EnableJpaRepositories(basePackages = "com.yy.yunpan")
@EntityScan(basePackages = "com.yy.yunpan")
@EnableAsync
public class YunpanApplication {

    public static void main(String[] args) {
        SpringApplication.run(YunpanApplication.class, args);
        System.out.println("=================================");
        System.out.println("    YY云盘启动成功！");
        System.out.println("    Swagger文档地址: http://localhost:8080/swagger-ui.html");
        System.out.println("=================================");
    }
}